export default {
    namespace: 'page2',
    state: {
        text: 'this is Page 2'
    },
    subscriptions: {
        setup({ dispatch, history }) {  // eslint-disable-line
        },
      },
    
      effects: {
        *fetch({ payload }, { call, put }) {  // eslint-disable-line
          yield put({ type: 'save' });
        },
      },
    
      reducers: {
        save(state, action) {
          return { ...state, ...action.payload };
        },
      },
}